#ifndef LINK_H
#define LINK_H

#include "time.h"
#include "stm32f4xx_hal.h"

#define ALARMTYPE     0
#define NOTETYPE      1

struct AlarmNode
{
	uint8_t hour;
	uint8_t min;
	uint8_t alarm_type;
	uint8_t thing;
	
	struct AlarmNode *next;
};
typedef struct AlarmNode AlarmNode;

void Init_Link(void);
void Add_Alarm_Link(uint8_t hour, uint8_t min);
void Link_Find_Alarm(uint8_t *h, uint8_t *m);
uint8_t Link_Alarm_Isset(void);
void Add_Note_Link(uint8_t hour, uint8_t min, uint8_t thing);
void Link_Find_Note(uint8_t *h, uint8_t *m, uint8_t *t);


#endif


